package com.sky.mapper;

import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {
    void insert(ShoppingCart shoppingCart);

    List<ShoppingCart> list(Long userId);

    ShoppingCart queryBySetmealId(Long setmealId, Long userId);

    void modify(ShoppingCart shoppingCart);

    ShoppingCart queryByDishId(Long dishId, Long userId,String dishFlavor);

    void deleteById(Long id);

    void clean(Long userId);
}
